const path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    // 输出目录
    outputDir: 'dist',
    lintOnSave: false,
    // lintOnSave: process.env.NODE_ENV !== 'production',
    // webpack中所有的关于webpack-dev-server的配置项;这边都支持
    devServer: {
        open: true,
        port: 5216
    },
    configureWebpack: {
        // 编写原生的webpack配置
        resolve: {
            alias: {
                components: resolve("src/components")
            }
        }
    }
}